package com.forensix.interface_test.utils;

import io.qameta.allure.Allure;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class AllureAttachmentUtil {

    public static void addHttpLogToAllure(){

        try {
            Allure.addAttachment("接口请求响应日志",new FileInputStream(GetBaseDirUtil.getBaseDir() + "/log/test.log"));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }

    }

}
